package com.corffen.design.singleton;

public class Window {

    public Window(ContextImpl context) {
        System.out.println(context);
    }

    public static Window from(ContextImpl context) {
        Window layoutInflate = (Window) context.getSystemService(ContextImpl.WINDOW);
        if (layoutInflate == null) {
            throw new RuntimeException("window not founded");
        }
        return layoutInflate;
    }
}
